<table>
	<thead>
		<tr>
			<g:sortableColumn property="name" title="Name" titleKey="workflow.name" />
			<g:sortableColumn property="domain" title="Domain" titleKey="workflow.domain" />
			<th><g:message code="workflow.recordType" default="Record Type" /></th>
			<th><g:message code="workflow.department" default="Department" /></th>
			<g:sortableColumn property="isActive" title="Is Active" titleKey="workflow.isActive" />
			<g:sortableColumn property="description" title="Description" titleKey="workflow.description" />
		</tr>
	</thead>
	<tbody>
		<g:each in="${workflowInstanceList}" status="i" var="workflowInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
				<td><g:link action="show" id="${workflowInstance.id}">${fieldValue(bean: workflowInstance, field: "name")}</g:link></td>
				<td>${fieldValue(bean: workflowInstance, field: "domain")}</td>
				<td>${fieldValue(bean: workflowInstance, field: "recordType")}</td>
				<td>${fieldValue(bean: workflowInstance, field: "department")}</td>
				<td><g:formatBoolean boolean="${workflowInstance.isActive}" /></td>
				<td>${fieldValue(bean: workflowInstance, field: "description")}</td>
			</tr>
		</g:each>
	</tbody>
</table>